
import zhreq from "@/api/axios";
export default {
  queryPageByCondition(params) {
    return zhreq.post("/config/omUser/queryPageByCondition", params);
  },
  queryByCondition(params) {
    return zhreq.post("/config/omUser/queryByCondition", params);
  },
  add(params) {
    return zhreq.post("/config/omUser/add", params);
  },
  edit(params) {
    return zhreq.request('put', "/config/omUser/edit", params);
  },
  delListByNo(params) {
    return zhreq.post(`/config/omUser/delListByNo`, params);
  },
  changePassword(params) {
    return zhreq.request('put', `/config/omUser/changePassword`, params);
  },
  resetPassword(omUserNo) {
    return zhreq.request('put', `/config/omUser/resetPassword/${omUserNo}`);
  },
  bindUser(params) {
    return zhreq.post(`/config/omRole/bindUsers${params}`);
  },
  updateExpire(omUserId, expire) {
    return zhreq.request('put', `/config/omUser/updateExpire/${omUserId}?expire=${expire}`);
  },
};
